package blue.global
{
	/**
	 * 字符串工具类
	 */
	public class StringUtil
	{
		public function StringUtil()
		{
		}

		/**
		 * 截取字符串
		 */
		public static function shortcut(src : String, length : int) : String
		{
			if (src.length <= length)
				return src;
			else
				return src.substr(0, length);
		}
	}
}